Optimal. Leaf size=80 \[ -\frac {8 (-1)^{3/4} a^3 \text {ArcTan}\left (\frac {(-1)^{3/4} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{d^{3/2} f}-\frac {2 \left (a^3+i a^3 \tan (e+f x)\right )}{d f \sqrt {d \tan (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 80, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3634, 12, 3614,
211} \begin {gather*} -\frac {8 (-1)^{3/4} a^3 \text {ArcTan}\left (\frac {(-1)^{3/4} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{d^{3/2} f}-\frac {2 \left (a^3+i a^3 \tan (e+f x)\right )}{d f \sqrt {d \tan (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 211
Rule 3614
Rule 3634
Rubi steps
\begin {align*} \int \frac {(a+i a \tan (e+f x))^3}{(d \tan (e+f x))^{3/2}} \, dx &=-\frac {2 \left (a^3+i a^3 \tan (e+f x)\right )}{d f \sqrt {d \tan (e+f x)}}-\frac {2 \int -\frac {2 i a^2 d (a+i a \tan (e+f x))}{\sqrt {d \tan (e+f x)}} \, dx}{d^2}\\ &=-\frac {2 \left (a^3+i a^3 \tan (e+f x)\right )}{d f \sqrt {d \tan (e+f x)}}+\frac {\left (4 i a^2\right ) \int \frac {a+i a \tan (e+f x)}{\sqrt {d \tan (e+f x)}} \, dx}{d}\\ &=-\frac {2 \left (a^3+i a^3 \tan (e+f x)\right )}{d f \sqrt {d \tan (e+f x)}}+\frac {\left (8 i a^4\right ) \text {Subst}\left (\int \frac {1}{a d-i a x^2} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{d f}\\ &=-\frac {8 (-1)^{3/4} a^3 \tan ^{-1}\left (\frac {(-1)^{3/4} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{d^{3/2} f}-\frac {2 \left (a^3+i a^3 \tan (e+f x)\right )}{d f \sqrt {d \tan (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.69, size = 156, normalized size = 1.95 \begin {gather*} \frac {2 a^3 e^{-3 i (e+f x)} (-i \cos (3 (e+f x))+\sin (3 (e+f x))) \left (-4 \tanh ^{-1}\left (\sqrt {\frac {-1+e^{2 i (e+f x)}}{1+e^{2 i (e+f x)}}}\right ) \tan (e+f x)+\sqrt {i \tan (e+f x)} (-i+\tan (e+f x))\right )}{d \sqrt {\frac {-1+e^{2 i (e+f x)}}{1+e^{2 i (e+f x)}}} f \sqrt {d \tan (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 308 vs. \(2 (67 ) = 134\).
time = 0.11, size = 309, normalized size = 3.86
method | result | size |
derivativedivides | \(\frac {2 a^{3} \left (-i \sqrt {d \tan \left (f x +e \right )}+4 d \left (\frac {i \left (d^{2}\right )^{\frac {1}{4}} \sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{8 d}-\frac {\sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{8 \left (d^{2}\right )^{\frac {1}{4}}}\right )-\frac {d}{\sqrt {d \tan \left (f x +e \right )}}\right )}{f \,d^{2}}\) | \(309\) |
default | \(\frac {2 a^{3} \left (-i \sqrt {d \tan \left (f x +e \right )}+4 d \left (\frac {i \left (d^{2}\right )^{\frac {1}{4}} \sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{8 d}-\frac {\sqrt {2}\, \left (\ln \left (\frac {d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )-2 \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )\right )}{8 \left (d^{2}\right )^{\frac {1}{4}}}\right )-\frac {d}{\sqrt {d \tan \left (f x +e \right )}}\right )}{f \,d^{2}}\) | \(309\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Both result and optimal contain complex but leaf count of result is larger than
twice the leaf count of optimal. 202 vs. \(2 (71) = 142\).
time = 0.55, size = 202, normalized size = 2.52 \begin {gather*} -\frac {a^{3} {\left (-\frac {\left (2 i - 2\right ) \, \sqrt {2} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {d} + 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {d}}\right )}{\sqrt {d}} - \frac {\left (2 i - 2\right ) \, \sqrt {2} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {d} - 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {d}}\right )}{\sqrt {d}} - \frac {\left (i + 1\right ) \, \sqrt {2} \log \left (d \tan \left (f x + e\right ) + \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {d} + d\right )}{\sqrt {d}} + \frac {\left (i + 1\right ) \, \sqrt {2} \log \left (d \tan \left (f x + e\right ) - \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {d} + d\right )}{\sqrt {d}}\right )} + \frac {2 \, a^{3}}{\sqrt {d \tan \left (f x + e\right )}} + \frac {2 i \, \sqrt {d \tan \left (f x + e\right )} a^{3}}{d}}{d f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 357 vs. \(2 (71) = 142\).
time = 0.36, size = 357, normalized size = 4.46 \begin {gather*} \frac {-16 i \, a^{3} \sqrt {\frac {-i \, d e^{\left (2 i \, f x + 2 i \, e\right )} + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} e^{\left (2 i \, f x + 2 i \, e\right )} - {\left (d^{2} f e^{\left (2 i \, f x + 2 i \, e\right )} - d^{2} f\right )} \sqrt {\frac {64 i \, a^{6}}{d^{3} f^{2}}} \log \left (\frac {{\left (-8 i \, a^{3} d e^{\left (2 i \, f x + 2 i \, e\right )} + {\left (i \, d^{2} f e^{\left (2 i \, f x + 2 i \, e\right )} + i \, d^{2} f\right )} \sqrt {\frac {64 i \, a^{6}}{d^{3} f^{2}}} \sqrt {\frac {-i \, d e^{\left (2 i \, f x + 2 i \, e\right )} + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}}{4 \, a^{3}}\right ) + {\left (d^{2} f e^{\left (2 i \, f x + 2 i \, e\right )} - d^{2} f\right )} \sqrt {\frac {64 i \, a^{6}}{d^{3} f^{2}}} \log \left (\frac {{\left (-8 i \, a^{3} d e^{\left (2 i \, f x + 2 i \, e\right )} + {\left (-i \, d^{2} f e^{\left (2 i \, f x + 2 i \, e\right )} - i \, d^{2} f\right )} \sqrt {\frac {64 i \, a^{6}}{d^{3} f^{2}}} \sqrt {\frac {-i \, d e^{\left (2 i \, f x + 2 i \, e\right )} + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}\right )} e^{\left (-2 i \, f x - 2 i \, e\right )}}{4 \, a^{3}}\right )}{4 \, {\left (d^{2} f e^{\left (2 i \, f x + 2 i \, e\right )} - d^{2} f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - i a^{3} \left (\int \frac {i}{\left (d \tan {\left (e + f x \right )}\right )^{\frac {3}{2}}}\, dx + \int \left (- \frac {3 \tan {\left (e + f x \right )}}{\left (d \tan {\left (e + f x \right )}\right )^{\frac {3}{2}}}\right )\, dx + \int \frac {\tan ^{3}{\left (e + f x \right )}}{\left (d \tan {\left (e + f x \right )}\right )^{\frac {3}{2}}}\, dx + \int \left (- \frac {3 i \tan ^{2}{\left (e + f x \right )}}{\left (d \tan {\left (e + f x \right )}\right )^{\frac {3}{2}}}\right )\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.72, size = 115, normalized size = 1.44 \begin {gather*} -\frac {2 \, {\left (-\frac {4 i \, \sqrt {2} a^{3} \arctan \left (-\frac {8 i \, \sqrt {d^{2}} \sqrt {d \tan \left (f x + e\right )}}{-4 i \, \sqrt {2} d^{\frac {3}{2}} + 4 \, \sqrt {2} \sqrt {d^{2}} \sqrt {d}}\right )}{\sqrt {d} f {\left (-\frac {i \, d}{\sqrt {d^{2}}} + 1\right )}} + \frac {a^{3}}{\sqrt {d \tan \left (f x + e\right )} f} + \frac {i \, \sqrt {d \tan \left (f x + e\right )} a^{3}}{d f}\right )}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.33, size = 77, normalized size = 0.96 \begin {gather*} -\frac {2\,a^3}{d\,f\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}}-\frac {a^3\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}\,2{}\mathrm {i}}{d^2\,f}+\frac {2\,\sqrt {16{}\mathrm {i}}\,a^3\,\mathrm {atanh}\left (\frac {\sqrt {16{}\mathrm {i}}\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}}{4\,\sqrt {d}}\right )}{d^{3/2}\,f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________